/*
    @author:sa
    @date:2024/11/12 9:52
*/
public class ArrayTest {
    public static void main(String[] args) {
        int[] arr = {10, 2, 15, 36, 1, 9};
        int x = 0;
        for (int z = 0; z < arr.length; z++) {
            for (int y = 0; y < 5; y++) {
                if (arr[y] > arr[y + 1]) {
                    x = arr[y + 1];
                    arr[y + 1] = arr[y];
                    arr[y] = x;
                }
            }
        }
        for (int y = 0; y < 6; y++) {
            System.out.println(arr[y]);
        }
    }
}
